<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>hover & active</title>
    <style>
      .btn {
        background-color: blueviolet;
        width: 60px;
        height: 30px;
        box-sizing: border-box;
     
      }
      .btn:hover{
        /* background-color: burlywood; */
        border:solid 2px red;
        cursor: pointer;
      }
      .btn:active{
        background-color: burlywood
      }
      .my-btn{
        width: 40px;
        height: 20px;
        background-color: #4e6ef2;
        border-radius: 6px;
        box-sizing: border-box;
        font-size: 10px;
        text-align: center;
        line-height: 18px ;
        border: solid 1px #4e6ef2;
      }
      .my-btn:hover{
        cursor: pointer;
        background-color: transparent;
      }
      .my-btn:active{
        background-color: blue;
      }
      .my-btn::before{
        content:"$";
        margin-right: 2px;
      }
    </style>
  </head>
  <body>
    <div class="btn">xxx</div>
    <div class="my-btn">target</div>
  </body>
</html>
